home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_sol_comfallstrestle.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  65 lines

  1. # Jones 3D Cog Script
  2. #
  3. # SOL_ComFallsTrestle.cog
  4. #
  5. #
  6. # [TRM]
  7. #
  8. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  9. # ========================================================================================
  10.  
  11. symbols
  12.  
  13.     message     entered
  14.     message     exited
  15.     
  16.     thing       player      local
  17.     thing       trest0
  18.     thing       trest1
  19.     
  20.     sector      sec_OnTop
  21.     
  22.     int         onTop=0     local
  23.     
  24. end
  25.  
  26. # ========================================================================================
  27.  
  28. code
  29.  
  30. entered:
  31.  
  32.     player = GetLocalPlayerThing();
  33.     
  34.     if(GetSenderRef() == sec_OnTop)
  35.     {
  36.         onTop = 1;
  37.         
  38.         SetCollideType(trest0, 0);
  39.         SetCollideType(trest1, 0);
  40.     }
  41.         
  42.     return;
  43.  
  44. # ========================================================================================
  45.  
  46. exited:
  47.  
  48.     player = GetLocalPlayerThing();
  49.     
  50.     if((GetSenderRef() == sec_OnTop) && (GetSourceRef() == player))
  51.     {
  52.         onTop = 0;
  53.         
  54.         Sleep(1.0);
  55.         SetCollideType(trest0, 3);
  56.         SetCollideType(trest1, 3);
  57.     }
  58.  
  59.     return;
  60.     
  61. # ========================================================================================
  62.  
  63. end
  64.  
  65.